package tests;

import common.Utils;
import org.openqa.selenium.By;

public class ListPage extends Utils {
    public static String url = "http://123.60.62.52:9090/blog_list.html";

    public ListPage() {
        super(url);
    }

    /**
     * 登录状态下 博客列表页测试
     */
    public void ListPageByLogin() throws InterruptedException {
        driver.findElement(By.cssSelector("body > div.container > div.right > div:nth-child(2) > div.title"));
        driver.findElement(By.cssSelector("body > div.container > div.right > div:nth-child(2) > div.date"));
        Thread.sleep(3000);
        driver.findElement(By.cssSelector("body > div.container > div.right > div:nth-child(1) > a")).click();
        Thread.sleep(3000);
    }

}
